package com.StarStudio.Service;

import com.ruoyi.common.core.Entity.Goods;
import com.ruoyi.common.core.Entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient(value = "Goods")
public interface GoodsService {


    @RequestMapping("/findByGoodsId/{goodsId}")
    Goods findByGoods_id(@PathVariable(value = "goodsId") long goodsId);

    @PutMapping("/put")
    Result updateGoods(@RequestBody Goods goods);
















}
